package decorator.concreteDecorator;

import component.GraphicComponent;
import decorator.GraphicDecorator;

// ConcreteDecorator: 添加边框
public class BorderDecorator extends GraphicDecorator {
    public BorderDecorator(GraphicComponent component) {
        super(component);
    }

    @Override
    public void draw() {
        super.draw();
        addBorder();
    }

    private void addBorder() {
        System.out.println("Adding border to component");
    }
}